package com.alks.function.data.dto.procurement;


import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@ToString
public class OrderUsageDiffDto {

    private String companyId;

    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "型体")
    private String style;

    private String color;

    @ApiModelProperty(value = "料号")
    private String mtlNo;

    @ApiModelProperty(value = "材料名称")
    private String mtlName;

    @ApiModelProperty(value = "规格")
    private String mtlSpec;

    @ApiModelProperty(value = "单位")
    private String mtlUnit;

    private String mtlColor;

    @ApiModelProperty(value = "序号")
    private Integer seqNo;

    @ApiModelProperty(value = "部位名称")
    private String partName;

    @ApiModelProperty(value = "段")
    private Integer segment;

    @ApiModelProperty(value = "下单单耗")
    private BigDecimal oldUsage;

    @ApiModelProperty(value = "现单耗")
    private BigDecimal newUsage;

    @ApiModelProperty(value = "差异单耗")
    private BigDecimal diffUsage;

    @ApiModelProperty(value = "请购单号")
    private String reqNo;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ApiModelProperty(value = "下单日期")
    private LocalDateTime purDate;
}
